package com.hq.talk.view.ui;

import android.view.LayoutInflater;
import android.view.View;
import com.hq.talk.R;
import com.hq.talk.model.WorkModel;
import com.hq.talk.presenter.impl.UserPresenter;
import com.hq.talk.view.base.BaseCommAty;

import java.util.ArrayList;
import java.util.List;

/**
 * 描述 ：我的工作技能
 * 作者 ：hq
 * 时间 ：2017/8/9 22:17
 */
public class MyWorkAty extends BaseCommAty {

//    @BindView(R.id.id_work_listv)
//    MyListView mListView;
//    private CommonAdapter<WorkModel> mWorkAdp;
    private List<WorkModel> mWorks = new ArrayList<WorkModel>();

    @Nullable
    @Override
    public View loadView(LayoutInflater inflater, View childView) {
        return super.loadView(inflater, inflater.inflate(R.layout.aty_my_work, null, false));
    }

    @Override
    public boolean hasDataInPage() {
        return !mWorks.isEmpty();
    }

    @Override
    public void initPresenter() {
        presenter = new UserPresenter();
    }

    @Override
    public void initView() {
        setTitleText(getString(R.string.my_work), null);
        setTitleRight("新增", new View.OnClickListener() {
            @Override
            public void onClick(View v) {

            }
        });
    }
}
